
<?php
    include('../config.ini.php');
    include('function.php');
    
    $db = db_connect();
    
    $product_id = $_POST['product_id'];
    
    $sql = "SELECT * FROM products WHERE product_id=$product_id";
    $result = mysql_query($sql);
    $row=mysql_fetch_assoc($result);
    
    $house_['product_img'] = 'images/products/'.$product_id.'/c_'.$row['product_img'];
    $house_['product_order_link'] = '<a href="order.php?product_id='.$product_id.'" title="Order '.$row['product_title'].'" class="order"><img src="images/product_order_bt.jpg" alt="Order '.$row['product_title'].'" id="product_order_bt" /></a>';
    $house_['product_detail'] =<<<showcase_img_lits
            <span>Product</span> : {$row['product_title']}<br />
	    <span>Dimension</span> : {$row['product_width']} x {$row['product_depth']} x {$row['product_height']}<br />
	    <span>Material</span> : {$row['product_material']}<br />
showcase_img_lits;
    
    echo json_encode($house_);
    
    db_close($db);
?>